package com.privatetime.service;

import java.util.List;

public interface BaseService<E, PK> {

	PK createEntity(E entity) throws Exception;

	E retrieveEntity(PK id);

	void updateEntity(E entity) throws Exception;

	void deleteEntityById(PK id) throws Exception;

	void deleteEntity(E entity) throws Exception;
	
	List<E> findEntityAll();

}
